@charset "utf-8";

a:hover,
a:visited {
    color: #fff;
    text-decoration: none;
}

a {
    color: rgba(255, 255, 255, .75);
    transition: color 250ms;
}

.list-group-item {
    text-shadow: 0.125rem 0.125rem 0.125rem rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .3);
    background-color: rgba(0, 0, 0, .15);
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, .4);
}

.list-group-item:hover a {
    color: #fff;
}

html, body {
    height: 100%;
}

.container {
    margin-bottom: 0;
    height: calc(100% - 11rem);
    padding-top: 4rem;
    background: transparent;
}

@media screen and (max-width: 767px) {
    .container { /*首页没有导航*/
        height: auto;
        padding-bottom: 4rem;
    }

}

header a.logo {
    display: block;
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 6rem;
    /* filter: brightness(1.1); */
}

header .logo img {
    display: block;
    width: 100%;
    animation: 18s logoAnimation infinite ease;
}

header h1 {
    margin-top: 0;
    padding: 2.5rem;
    font-weight: bolder;
    color: #ffd353d1;;
    letter-spacing: .25rem;
    font-family: "行楷", "楷体", serif;
    text-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .6);
}


/*媒体查询是大屏优先，和bootstrap的移动端优先相反*/
.container > .row:first-child {
    padding-top: 4rem;
}

.container > .row {
    height: 20rem;
}

.top:hover {
    height: 24rem;
}
.top:hover ~ .bottom{
    height: 12rem;
}
@media screen and (max-width: 1599px) {
    .container > .row {
        height: 13rem;
    }

    .container > .row:first-child {
        padding-top: 0;
    }
    .top:hover {
        height: 20rem;
    }

}

@media screen and (max-width: 767px) {
    #index .container > .row {
        height: auto;
    }

    .container > .row.top {
        padding-top: 4rem;
        padding-left: 40%;
    }

    .container > .row.bottom {
        padding-top: 4rem;
        padding-right: 40%;
    }
}

section.item {
    position: relative;
}

section.item h2 {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0;
    font-size: 1.5rem;
    border-bottom: none;
    color: rgba(255, 255, 255, 1);
    text-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .6);
    animation: h2Animation 3s infinite;
}

@media screen and (max-width: 767px) {
    section.item h2 {
        margin-bottom: 1rem;
        margin-top: 1.5rem;
        text-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .75);
    }
}

section.item:nth-of-type(2) h2 {
    animation-duration: 5s;
    animation-delay: 1s;
}

section.item:nth-of-type(3) h2 {
    animation-duration: 4s;
}

.container > .row:nth-of-type(2) section.item h2 {
    animation-delay: 1.5s;
}

@keyframes h2Animation {
    from {
        opacity: 1;
        top: 0;
    }
    38.2% {
        opacity: .3;
        top: -1rem;
    }
    to {
        opacity: 1;
        top: 0;
    }
}

section.item ul {
    z-index: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 20rem;
    text-align: center;
}

@media screen and (max-width: 767px) {
    section.item ul {
        position: relative;
        width: 16rem;
    }
}

section.item:hover > ul {
    display: block;
}

section.item:hover h2 {
    animation: none;
}

.list-group-item.disabled {
    background: transparent;
}

section.item ul > li {
    padding: 0;
}

section.item ul > li > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1.25rem;
}
section.item ul > li > a .iconfont {
    margin-left: .5rem;
    color: lightskyblue;
}
@media screen and (max-width: 767px) {
    section.item ul > li > a .iconfont {
        margin-left: .25rem;
    }
}
.item.friends ul{
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: .25rem;
    background-color: rgba(0, 0, 0, .15);
}
.item.friends ul>li{
    border-left: none ;
    border-right: none ;
    background-color:transparent;
}
.item.friends ul>li:hover a{
    color: rgba(255, 255, 255, .75);
}
.item.friends ul>li>a{
    display: inline-block;
    width: auto;
}
.item.friends ul>li>a:hover{
    color: #fff;
    background-color: rgba(0, 0, 0, .4);
}
@media screen and (max-width: 767px) {
    .item.friends ul>li{
        border: none;
    }
}
@media screen and (max-width: 767px) {
    .mainFooter {
        position: fixed;
        bottom: 0;
    }
}
